#!/bin/bash

for _f in /usr/lib/modules/*tkg*; do
  if [[ ! -e ${_f}/vmlinuz ]]; then
    rm -rf "$_f"
  fi
done

# vim:set ft=sh sw=2 et:
 
